
.cartContainer {
  padding: 10px;
  background-color: #f9f9f9;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

/* 购物车头部 */
.cartHeader {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  margin-bottom: 15px;
  background-color: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.cartTitle {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin: 0;
}

.searchBox {
  flex: 1;
  margin: 0 20px;
  position: relative;
}

.searchInput {
  width: 100%;
  height: 35px;
  border: 1px solid #ddd;
  border-radius: 17.5px;
  padding: 0 15px;
  outline: none;
  background-color: #f5f5f5;
  transition: all 0.3s;
}

.searchInput:focus {
  border-color: #ff4d4f;
  background-color: white;
}

.manageBtn {
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.manageBtn:hover {
  background-color: #f5f5f5;
}

/* 空购物车样式 */
.emptyCart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.emptyIcon {
  font-size: 60px;
  color: #ddd;
  margin-bottom: 20px;
}

.emptyText {
  color: #999;
  font-size: 16px;
  margin-bottom: 20px;
}

.goShoppingBtn {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.goShoppingBtn:hover {
  background-color: #ff7875;
}

/* 商品列表 */
.productList {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

/* 商品项 */
.productItem {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid #eee;
  align-items: center;
  background-color: white;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.checkboxWrapper {
  margin-right: 10px;
  display: flex;
  align-items: center;
}

.checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.productImage {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-right: 10px;
  background-color: #f5f5f5;
}

.productInfo {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.productShop {
  color: #666;
  font-size: 12px;
  margin-bottom: 5px;
}

.productName {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

.productPrice {
  color: #ff4d4f;
  font-size: 16px;
  font-weight: bold;
  margin-top: 5px;
  display: flex;
  align-items: baseline;
}

.originalPrice {
  color: #999;
  font-size: 12px;
  text-decoration: line-through;
  margin-left: 8px;
}

.productActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  height: 80px;
}

.deleteBtn {
  color: #ff4d4f;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.deleteBtn:hover {
  background-color: #fff2f0;
}

/* 购物车底部 */
.cartFooter {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55px;
  background-color: white;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 100;
}

.selectAll {
  display: flex;
  align-items: center;
}

.selectAll input {
  width: 16px;
  height: 16px;
  margin-right: 5px;
  cursor: pointer;
}

.selectAll span {
  color: #333;
  font-size: 14px;
}

.footerRight {
  display: flex;
  align-items: center;
}

.totalPrice {
  margin-right: 15px;
  text-align: right;
}

.totalPrice span {
  color: #ff4d4f;
  font-size: 16px;
  font-weight: bold;
}

.checkoutBtn {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 100px;
}

.checkoutBtn:disabled {
  background-color: #ffcccc;
  cursor: not-allowed;
}

.checkoutBtn:hover:not(:disabled) {
  background-color: #ff7875;
}

.batchDeleteBtn {
  background-color: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.batchDeleteBtn:hover {
  background-color: #ff7875;
}

/* 适配步进器样式 */
.van-stepper {
  width: 100px !important;
}